package com.example.education.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.education.Bean.News;
import org.apache.mahout.cf.taste.model.DataModel;

import java.util.ArrayList;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 姚
 * @since 2023-04-12
 */
public interface NewsService extends IService<News> {
    ArrayList<News> recommendNews(String country);

    void recommend(DataModel dataModel);


    DataModel getDataModel();

    //查出所有新闻
    ArrayList<News> selectAllNews();

    //根据你现在的留学阶段推荐新闻
    ArrayList<News> recommendNewsByStage(String stage);
}
